﻿/**
 *	\file		lxpref_route_msg.cxx
 *	\date		(2015-01-01 00:38:39)/(2015-01-01 00:38:39)
 *-----------------------------------------------------------------------------
 *	\brief
 *	\version	1.0.0.1
 *	\author		Nick Shallery	(nicknide@gmail.com)
 *	\copyright	YOU HAVE ALL LEFT WITH THIS CODE WHILE YOU KEEP COMMENT IN EVERY COPY.
 *-----------------------------------------------------------------------------
**/

#include	"./lxpref_route_msg.hxx"



namespace lxpref{namespace message{
	lolix::size_type GetNameCount(unsigned mask)
	{
		unsigned cnt = 0;
		#define LX_PREF_DEF__EVENT(name, rtv, have_str_param)	if ( have_str_param && (mask & rtv) ) ++cnt;
		#include	"./_lxpref_event_types.inl"
		#undef LX_PREF_DEF__EVENT
		return cnt;
	}
}}
